var url = '';
var jsonData = '';

$(function() {
	loadPet();
});

function loadPet() {
	url = ctx + '/petInfoController/getPetInfo';
	jsonData = {};
	var  returnData = commonAjax();
	
	var initHtml = initManagePetHtml(returnData);
	
	$("#managePetTBody").html(initHtml);
}
 

function commonAjax(){
	var result = '';
 	$.ajax({
		type : "GET",
		url: url,
	 	data : jsonData,
	 	async: false,
		dataType : "json",
		success: function(data) {
				result = data;
			}
		});
 	return result;
}